﻿#pragma warning(disable: 4996)
#pragma warning(disable: 6031)

#include <stdio.h>

void solve(int a, int b) {
	printf("%d + %d = %d\n", a, b, a + b);
	printf("%d - %d = %d\n", a, b, a - b);
	printf("%d * %d = %d\n", a, b, a * b);
	if (a / b * b == a)
		printf("%d / %d = %d\n", a, b, a / b);
	else
		printf("%d / %d = %.2f\n", a, b, (double)a / b);
}

int main()
{
	freopen("D:/Develop/GitRepos/MOOC/浙江大学/数据结构/201906/DataStructure/M2019秋C入门和进阶练习集/7-10.txt", "r", stdin);
	int a, b;
	scanf("%d %d", &a, &b);
	solve(a, b);
	return 0;
}